<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../引入vue2.js"></script>
</head>

<body>
    <div id="app">
        <ul>
            <!-- <li v-for="(item,index) of arr"> -->
            <li v-for="(item,index) in arr" :key="item">
                {{item}}--{{index}}

            </li>
        </ul>

        <ol>
            <!-- <li v-for="(item,key) of obj"> -->
            <li v-for="(item,key) in obj">
                {{item}}---{{key}}

            </li>
        </ol>
    </div>
</body>
<script>
    // for —— of/in 遍历数组和对象
    let vm = new Vue({
        el: '#app',
        data: {
            arr: [11, 22, 33, 44, 55],
            obj: {
                name: 'jugg',
                age: "100",
                address: "郑州"
            }
        },
    })
</script>

</html>